package com.zhw.mybatis.xml;

import com.zhw.mybatis.entity.Goods;
import com.zhw.mybatis.mapping.MappedData;
import com.zhw.mybatis.mapping.MappedStatement;

public class GoodsMapperXml extends MappedData {

    public GoodsMapperXml(){
        mapData.put(getNameSpace(),
                new MappedStatement("selectGoods","select id,good_name as goodName,good_price as goodPrice,add_time as addTime,good_info as goodInfo from goods WHERE id = #{id}",Goods.class));
    }

    @Override
    protected String getNameSpace() {
        return "com.zhw.mybatis.mapper.GoodsMapper";
    }
}
